import request from '@/utils/request'

// 查询充值规则列表
export function listAxRechargeRule(query) {
  return request({
    url: '/ax/AxRechargeRule/list',
    method: 'get',
    params: query
  })
}

// 查询充值规则详细
export function getAxRechargeRule(id) {
  return request({
    url: '/ax/AxRechargeRule/' + id,
    method: 'get'
  })
}

// 新增充值规则
export function addAxRechargeRule(data) {
  return request({
    url: '/ax/AxRechargeRule',
    method: 'post',
    data: data
  })
}

// 修改充值规则
export function updateAxRechargeRule(data) {
  return request({
    url: '/ax/AxRechargeRule',
    method: 'put',
    data: data
  })
}

// 删除充值规则
export function delAxRechargeRule(id) {
  return request({
    url: '/ax/AxRechargeRule/' + id,
    method: 'delete'
  })
}
